package mypackage.bean;

/**
 * 用户收货地址
 * @author YH925
 * @create 2021/12/9 21:51
 */
public class Address {
    private int id;

    private int clientId;

    //与用户关联
    private Clients client;



    //收货地址
    private String acceptAddress;
//    用户手机号码
    private String tel;
    //收件人姓名
    private String acceptName;
    //是否是默认地址
    private String isDefault;

    public Address() {
    }

    public Address(int id, Clients client, String acceptAddress, String tel, String acceptName, String isDefault) {
        this.id = id;
        this.client = client;
        this.acceptAddress = acceptAddress;
        this.tel = tel;
        this.acceptName = acceptName;
        this.isDefault = isDefault;
    }

    public Address(int id, int clientId, Clients client, String acceptAddress, String tel, String acceptName, String isDefault) {
        this.id = id;
        this.clientId = clientId;
        this.client = client;
        this.acceptAddress = acceptAddress;
        this.tel = tel;
        this.acceptName = acceptName;
        this.isDefault = isDefault;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Clients getClient() {
        return client;
    }

    public void setClient(Clients client) {
        this.client = client;
    }

    public String getAcceptAddress() {
        return acceptAddress;
    }

    public void setAcceptAddress(String acceptAddress) {
        this.acceptAddress = acceptAddress;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAcceptName() {
        return acceptName;
    }

    public void setAcceptName(String acceptName) {
        this.acceptName = acceptName;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public int getClientId() {
        return clientId;
    }

    public void setClientId(int clientId) {
        this.clientId = clientId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", clientId=" + clientId +
                ", client=" + client +
                ", acceptAddress='" + acceptAddress + '\'' +
                ", tel='" + tel + '\'' +
                ", acceptName='" + acceptName + '\'' +
                ", isDefault='" + isDefault + '\'' +
                '}';
    }
}
